<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:af="http://myfaces.apache.org/trinidad"
	xmlns:afh="http://myfaces.apache.org/trinidad/html"
	xmlns:ppc="http://www.sungard.de/carnot/web/portal-plugin/common">

	<ui:composition>

		<af:messages id="globalPortalMessage" />

		<f:subview id="activityPanel"
			rendered="#{portalHeader.processPortalSession.activityPanelVisible and not portalHeader.processPortalSession.resubmissionPanelVisible}">

			<ui:include src="#{portalHeader.activityPanelURL}" />

		</f:subview>

		<f:subview id="resubmissionPanel"
			rendered="#{portalHeader.processPortalSession.resubmissionPanelVisible}">

			<ui:include src="/activity-resubmission.xhtml" />

		</f:subview>

		<f:subview id="taskTable"
			rendered="#{not portalHeader.processPortalSession.activityPanelVisible and not portalHeader.processPortalSession.optionPanelVisible}">

			<ui:include src="/carnot/include/worklist-details.xhtml">
				<ui:param name="workAreaLaunchActivityDelegate" value="#{portalHeader}" />
			</ui:include>

		</f:subview>

		<f:subview id="options"
			rendered="#{portalHeader.processPortalSession.optionPanelVisible}">

			<ui:include src="/carnot/include/options.xhtml" />

		</f:subview>

	</ui:composition>

</f:view>
